package com.cloud.wms.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Author:Chen
 * @Date: 2021-03-31 14:33
 * @Description:
 */
public class ContainerEntity implements Parcelable {

    /**
     * containerCode : XM210329000004
     * containerID : 39667104
     * containerType : 2
     */

    private String containerCode;
    private long containerID;
    private int containerType;

    public String getContainerCode() {
        return containerCode;
    }

    public void setContainerCode(String containerCode) {
        this.containerCode = containerCode;
    }

    public long getContainerID() {
        return containerID;
    }

    public void setContainerID(long containerID) {
        this.containerID = containerID;
    }

    public int getContainerType() {
        return containerType;
    }

    public void setContainerType(int containerType) {
        this.containerType = containerType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.containerCode);
        dest.writeLong(this.containerID);
        dest.writeInt(this.containerType);
    }

    public ContainerEntity() {
    }

    protected ContainerEntity(Parcel in) {
        this.containerCode = in.readString();
        this.containerID = in.readLong();
        this.containerType = in.readInt();
    }

    public static final Parcelable.Creator<ContainerEntity> CREATOR = new Parcelable.Creator<ContainerEntity>() {
        @Override
        public ContainerEntity createFromParcel(Parcel source) {
            return new ContainerEntity(source);
        }

        @Override
        public ContainerEntity[] newArray(int size) {
            return new ContainerEntity[size];
        }
    };
}
